<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <title>demo</title>
  <!-- 引入Vue -->
  <!-- <script type="text/javascript" src="../js/vue.js"></script> -->
</head>

<body>
  <!-- 准备好一个容器-->
  <div id="demo">

  </div>
</body>

<script type="text/javascript">
  // 声明一个字符串
  let b = 13
  // 声明一个对象
  let person = {
    name: '张三',
    gender: '男'
  }
  // 添加age 属性并进行高级的定制
  Object.defineProperty(person, 'age', {
    get() { return n },
    set(newValue) { n = newValue }
  })
  console.log(person);
</script>

</html>